package com.example.mapper;

import com.example.bean.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author wjf
* @description 针对表【sys_role】的数据库操作Mapper
* @createDate 2022-09-26 16:48:03
* @Entity com.example.bean.Role
*/
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select id from sys_role where name=#{name}")
    int getRoleId(@Param("name") String name);


}




